<template>
  <view class="radio-box">
    <image v-show="!checked" src="/static/cart-box/radio-default.png"></image>
    <image v-show="checked" src="/static/cart-box/radio-active.png"></image>
  </view>
</template>

<script>
export default {
  name: "my-radio",
  props: {
    checked: Boolean
  }
}
</script>

<style lang="scss" scoped>
.radio-box {
  width: 30px;
  text-align: center;

  image {
    width: 16px;
    height: 16px;
  }
}
</style>